package com.github.admin.edu.security.jwt.server.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-29
 */
@Entity
@Table(name = "t_sys_step", schema = "usr_bx", catalog = "")
public class TSysStep {
    private Integer id;
    private String name;
    private Integer order;
    private Integer sfqy;
    private Integer type;

    @Id
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "order")
    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    @Basic
    @Column(name = "sfqy")
    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        this.sfqy = sfqy;
    }

    @Basic
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TSysStep tSysStep = (TSysStep) o;
        return Objects.equals(id, tSysStep.id) &&
                Objects.equals(name, tSysStep.name) &&
                Objects.equals(order, tSysStep.order) &&
                Objects.equals(sfqy, tSysStep.sfqy) &&
                Objects.equals(type, tSysStep.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, order, sfqy, type);
    }
}
